package com.gpframework.module.wages.mapper;

import com.gpframework.module.wages.domain.GzMonthlyLeave;
import com.gpframework.module.wages.domain.vo.GzMonthlyLeaveVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;
/**
 * @ClassName GzMonthlyLeave
 * @Author gpframework
 * @Date 2024-01-18
 * @Version 1.0.0
 * @Description 月度休假Mapper接口
 */
public interface GzMonthlyLeaveMapper extends BaseMapper<GzMonthlyLeave> {

    /**
    * 列表
    * @param lqw
    * @return
    */
    List<GzMonthlyLeaveVo> listVo(@Param("ew") QueryWrapper<GzMonthlyLeave> lqw);

    /**
    * 对象
    * @param id
    * @return
    */
    GzMonthlyLeaveVo getVo(@Param("id")Long id);

    void delelteMonth(@Param("firstDayOfMonth") LocalDate firstDayOfMonth, @Param("lastDayOfMonth")LocalDate lastDayOfMonth);

    void delelteMonth(@Param("yearMonth") Date yearMonth);
}
